const { npm_package_version } = process.env;

module.exports = {
  env: {
    NODE_ENV: '"qa"',
    UMI_ENV: '"qa"',
  },
  defineConstants: {
    SENTRY_CONFIG: JSON.stringify({
      dsn: 'https://a1afdee0ceb841eeaf3fd1c61ceefd54@sentry-test.biaoguoworks.com/4',
      environment: 'qa',
      release: npm_package_version,
    }),
  },
  weapp: {},
  h5: {
    /**
     * 如果h5端编译后体积过大，可以使用webpack-bundle-analyzer插件对打包体积进行分析。
     * 参考代码如下：
     * webpackChain (chain) {
     *   chain.plugin('analyzer')
     *     .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
     * }
     */
  },
};
